package DataConnectionInterface;

import java.io.Serializable;

public class UserInfo implements Serializable{
	private static final long serialVersionUID = 1L;
	private int id;
	private String name;
	private String password;
	private String description;
	private int wins = 0;
	private int loses = 0;

	public UserInfo(String name, String password, String description){
		this.name = name;
		this.password = password;
		this.description = description;
	}
	
	public UserInfo(UserInfo user){
		this.id = user.getID();
		this.name = user.getName();
		this.password = user.getPassword();
		this.description = user.getDescription();
		this.wins = user.getWins();
		this.loses = user.getLoses();
	}
	
	public String getName(){
		return name;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	public String getPassword(){
		return password;
	}
	
	public void setPassword(String password){
		this.password = password;
	}
	
	public String getDescription(){
		return description;
	}
	
	public void setDescrption(String description){
		this.description = description;
	}
	
	public int getWins(){
		return wins;
	}
	
	public void setWins(int wins){
		this.wins = wins;
	}
	
	public int getLoses(){
		return loses;
	}
	
	public void sedLoses(int loses){
		this.loses = loses;
	}
	
	public void updateWins(){
		wins++;
	}
	
	public void updateLoses(){
		loses++;
	}

	public void setID(int id) {
		this.id = id;
	}
	public int getID(){
		return id; 
	}
}
